package com.bestcem.xm.user.dao.mapper;

import com.bestcem.xm.user.entity.mysql.UserMfaSetting;
import org.apache.ibatis.annotations.Mapper;

/**
 * 用户登录安全验证 mapper
 *
 * @author panyun <yun.pan@idiaoyan.com>
 * @version v1.0
 * @date 2022/6/9 16:18
 */
@Mapper
public interface UserMfaSettingMapper {
    int deleteByPrimaryKey(String id);

    int insert(UserMfaSetting userMfaSetting);

    int insertSelective(UserMfaSetting userMfaSetting);

    UserMfaSetting selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(UserMfaSetting userMfaSetting);

    int updateByPrimaryKey(UserMfaSetting userMfaSetting);

    /**
     * 根据orgId获取公司的用户登录多因素验证设置
     *
     * @param orgId 租户id
     * @return com.bestcem.xm.user.entity.mysql.UserMfaSetting
     * @author panyun <yun.pan@idiaoyan.com>
     * @date 2022/6/13 12:59
     */
    UserMfaSetting selectByOrgId(String orgId);
}